package IteratorPattern;


/**
 * 迭代器模式
 * 实体类-被遍历的元素
 */
public class Book {
    private String name;

    public Book(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }
}
